home *** CD-ROM | disk | FTP | other *** search
/ Day Cry / Day Cry CD.bin / oh_towns / ugoku / src.lzh / MOVREC / IRCDSK.C < prev    next >
C/C++ Source or Header  |  1994-06-01  |  12KB  |  514 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    baseDialogId ;
  9. extern int    MJ_BASEOBJ ;
  10. extern int    menubarId ;
  11. extern int    menuId ;
  12. extern int    mItemId[2] ;
  13. extern int    SDKmenuId ;
  14. extern int    SDKmItemId[3] ;
  15. extern int    aboutFunc() ;
  16. extern int    quitFunc() ;
  17. extern int    fileMenuId ;
  18. extern int    fileMItemId[13] ;
  19. extern int    selectFunc0() ;
  20. extern int    selectFunc1() ;
  21. extern int    selectFunc2() ;
  22. extern int    selectFunc3() ;
  23. extern int    selectFunc4() ;
  24. extern int    selectFunc5() ;
  25. extern int    selectFunc6() ;
  26. extern int    selectFunc7() ;
  27. extern int    selectFunc8() ;
  28. extern int    quitIconId ;
  29. extern int    wakuDialogId ;
  30. extern int    wakuDialogId2 ;
  31.  
  32. #define ALIGN    4
  33. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  34.  
  35. /*    MMI_init ùpâfü[â^    */
  36.  
  37. /*    âwâbâ_    */
  38.  
  39. MMIINIT    initDataIRCDSK = { "MmiInit",  26, 0 } ;
  40.  
  41. /* baseDialogId */
  42.  
  43. static MMIPACKET d001 = {    &baseDialogId,
  44.                             &MJ_BASEOBJ,
  45.                             &MJ_DIALOGL40,
  46.                             OFFSET(DIALOGL40),
  47.                             MS_NONE
  48.                         } ;
  49. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  50.                                0,   0, 639, 479,15, 6, 8,
  51.                             MS_NONEL40,
  52.                             NULL,   0,   0
  53.                         } ;
  54.  
  55. /* menubarId */
  56.  
  57. static MMIPACKET d002 = {    &menubarId,
  58.                             &baseDialogId,
  59.                             &MJ_DIALOGL40,
  60.                             OFFSET(DIALOGL40),
  61.                             MS_NONE
  62.                         } ;
  63. static DIALOGL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
  64.                                0,   0, 639,  19, 0, 7, 0,
  65.                             MS_NONEL40,
  66.                             NULL,   0,   0
  67.                         } ;
  68.  
  69. /* menuId */
  70.  
  71. static MMIPACKET d003 = {    &menuId,
  72.                             &menubarId,
  73.                             &MJ_MENUL40,
  74.                             OFFSET(MENUL40),
  75.                             MS_NONE
  76.                         } ;
  77. static MENUL40    d003d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SKEYL40 | MS_CHECKL40 | MS_HORIL40,
  78.                                0,   0, 490,  19, 0, 7, 0,
  79.                             MS_NONEL40,
  80.                             NULL,   0
  81.                         } ;
  82.  
  83. /* mItemId[0] */
  84.  
  85. static MMIPACKET d004 = {    &mItemId[0],
  86.                             &menuId,
  87.                             &MJ_MITEML40,
  88.                             OFFSET(MITEML40),
  89.                             MS_NONE
  90.                         } ;
  91. static MITEML40    d004d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  92.                                0,   0, 105,  19, 8, 8,15,
  93.                             MS_PANELL40,
  94.                             0,
  95.                             0x0000,  -1,
  96.                             " élénéuéqédéb",
  97.                                1,  12,  12,
  98.                             MS_BOLDL40,
  99.                                0,   0,
  100.                                0
  101.                         } ;
  102.  
  103. /* SDKmenuId */
  104.  
  105. static MMIPACKET d005 = {    &SDKmenuId,
  106.                             &mItemId[0],
  107.                             &MJ_MENUL40,
  108.                             OFFSET(MENUL40),
  109.                             MS_NONE
  110.                         } ;
  111. static MENUL40    d005d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SKEYL40 | MS_CHECKL40,
  112.                                0,  39, 108, 147, 8,15, 8,
  113.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  114.                             NULL,   0
  115.                         } ;
  116.  
  117. /* SDKmItemId[0] */
  118.  
  119. static MMIPACKET d006 = {    &SDKmItemId[0],
  120.                             &SDKmenuId,
  121.                             &MJ_MITEML40,
  122.                             OFFSET(MITEML40),
  123.                             MS_NONE
  124.                         } ;
  125. static MITEML40    d006d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  126.                                2,  45, 104,  64, 8,15, 8,
  127.                             MS_NONEL40,
  128.                             aboutFunc,
  129.                             0x0041,  -1,
  130.                             "éáé╬éñé╞ ÑÑÑ ",
  131.                                1,  12,  12,
  132.                             MS_NONEL40,
  133.                                0,   0,
  134.                                0
  135.                         } ;
  136.  
  137. /* SDKmItemId[1] */
  138.  
  139. static MMIPACKET d007 = {    &SDKmItemId[1],
  140.                             &SDKmenuId,
  141.                             &MJ_MITEML40,
  142.                             OFFSET(MITEML40),
  143.                             MS_NONE
  144.                         } ;
  145. static MITEML40    d007d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  146.                               10,  72, 101,  92, 8,15, 8,
  147.                             MS_NONEL40,
  148.                             0,
  149.                             0x0000,  -1,
  150.                             NULL,
  151.                                1,  12,  12,
  152.                             MS_NONEL40,
  153.                                0,   0,
  154.                                0
  155.                         } ;
  156.  
  157. /* SDKmItemId[2] */
  158.  
  159. static MMIPACKET d008 = {    &SDKmItemId[2],
  160.                             &SDKmenuId,
  161.                             &MJ_MITEML40,
  162.                             OFFSET(MITEML40),
  163.                             MS_NONE
  164.                         } ;
  165. static MITEML40    d008d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  166.                                6, 116, 105, 136, 8,15, 8,
  167.                             MS_NONEL40,
  168.                             quitFunc,
  169.                             0x0051,  -1,
  170.                             "ÅI  ù╣      ",
  171.                                1,  12,  12,
  172.                             MS_NONEL40,
  173.                                0,   0,
  174.                                0
  175.                         } ;
  176.  
  177. /* mItemId[1] */
  178.  
  179. static MMIPACKET d009 = {    &mItemId[1],
  180.                             &menuId,
  181.                             &MJ_MITEML40,
  182.                             OFFSET(MITEML40),
  183.                             MS_NONE
  184.                         } ;
  185. static MITEML40    d009d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  186.                              106,   0, 195,  19, 8, 1,15,
  187.                             MS_PANELL40,
  188.                             0,
  189.                             0x0000,  -1,
  190.                             "âtâ@âCâï ",
  191.                                1,  12,  12,
  192.                             MS_NONEL40,
  193.                                0,   0,
  194.                                0
  195.                         } ;
  196.  
  197. /* fileMenuId */
  198.  
  199. static MMIPACKET d010 = {    &fileMenuId,
  200.                             &mItemId[1],
  201.                             &MJ_MENUL40,
  202.                             OFFSET(MENUL40),
  203.                             MS_NONE
  204.                         } ;
  205. static MENUL40    d010d =     {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SKEYL40 | MS_CHECKL40,
  206.                              112,  38, 286, 357, 8,15, 8,
  207.                             MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
  208.                             NULL,   0
  209.                         } ;
  210.  
  211. /* fileMItemId[0] */
  212.  
  213. static MMIPACKET d011 = {    &fileMItemId[0],
  214.                             &fileMenuId,
  215.                             &MJ_MITEML40,
  216.                             OFFSET(MITEML40),
  217.                             MS_NONE
  218.                         } ;
  219. static MITEML40    d011d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  220.                              114,  43, 278,  62, 8,15, 8,
  221.                             MS_NONEL40,
  222.                             selectFunc0,
  223.                             0x004c,  -1,
  224.                             "ô«ëµâtâ@âCâïû╝",
  225.                                1,  12,  12,
  226.                             MS_NONEL40,
  227.                                0,   0,
  228.                                0
  229.                         } ;
  230.  
  231. /* fileMItemId[1] */
  232.  
  233. static MMIPACKET d012 = {    &fileMItemId[1],
  234.                             &fileMenuId,
  235.                             &MJ_MITEML40,
  236.                             OFFSET(MITEML40),
  237.                             MS_NONE
  238.                         } ;
  239. static MITEML40    d012d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  240.                              115,  65, 257,  84, 8,15, 8,
  241.                             MS_NONEL40,
  242.                             0,
  243.                             0x0000,  -1,
  244.                             NULL,
  245.                                1,  12,  12,
  246.                             MS_NONEL40,
  247.                                0,   0,
  248.                                0
  249.                         } ;
  250.  
  251. /* fileMItemId[2] */
  252.  
  253. static MMIPACKET d013 = {    &fileMItemId[2],
  254.                             &fileMenuId,
  255.                             &MJ_MITEML40,
  256.                             OFFSET(MITEML40),
  257.                             MS_NONE
  258.                         } ;
  259. static MITEML40    d013d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  260.                              114,  89, 280, 108, 8,15, 8,
  261.                             MS_NONEL40,
  262.                             selectFunc1,
  263.                             0x0000,  -1,
  264.                             "î┤ëµâfâBâîâNâgâèé╠ÄwÆΦ",
  265.                                1,  12,  12,
  266.                             MS_NONEL40,
  267.                                0,   0,
  268.                                0
  269.                         } ;
  270.  
  271. /* fileMItemId[3] */
  272.  
  273. static MMIPACKET d014 = {    &fileMItemId[3],
  274.                             &fileMenuId,
  275.                             &MJ_MITEML40,
  276.                             OFFSET(MITEML40),
  277.                             MS_NONE
  278.                         } ;
  279. static MITEML40    d014d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  280.                              117, 115, 278, 134, 8,15, 8,
  281.                             MS_NONEL40,
  282.                             selectFunc2,
  283.                             0x0000,  -1,
  284.                             "î┤ëµâtâ@âCâïé╠ôoÿ^",
  285.                                1,  12,  12,
  286.                             MS_NONEL40,
  287.                                0,   0,
  288.                                0
  289.                         } ;
  290.  
  291. /* fileMItemId[4] */
  292.  
  293. static MMIPACKET d015 = {    &fileMItemId[4],
  294.                             &fileMenuId,
  295.                             &MJ_MITEML40,
  296.                             OFFSET(MITEML40),
  297.                             MS_NONE
  298.                         } ;
  299. static MITEML40    d015d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  300.                              115, 139, 279, 158, 8,15, 8,
  301.                             MS_NONEL40,
  302.                             selectFunc3,
  303.                             0x0000,  -1,
  304.                             "ârâfâIôⁿù═",
  305.                                1,  12,  12,
  306.                             MS_NONEL40,
  307.                                0,   0,
  308.                                0
  309.                         } ;
  310.  
  311. /* fileMItemId[5] */
  312.  
  313. static MMIPACKET d016 = {    &fileMItemId[5],
  314.                             &fileMenuId,
  315.                             &MJ_MITEML40,
  316.                             OFFSET(MITEML40),
  317.                             MS_NONE
  318.                         } ;
  319. static MITEML40    d016d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  320.                              115, 161, 280, 180, 8,15, 8,
  321.                             MS_NONEL40,
  322.                             selectFunc4,
  323.                             0x0000,  -1,
  324.                             "î┤ëµé╠â`âFâbâN",
  325.                                1,  12,  12,
  326.                             MS_NONEL40,
  327.                                0,   0,
  328.                                0
  329.                         } ;
  330.  
  331. /* fileMItemId[6] */
  332.  
  333. static MMIPACKET d017 = {    &fileMItemId[6],
  334.                             &fileMenuId,
  335.                             &MJ_MITEML40,
  336.                             OFFSET(MITEML40),
  337.                             MS_NONE
  338.                         } ;
  339. static MITEML40    d017d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  340.                              115, 184, 255, 203, 8,15, 8,
  341.                             MS_NONEL40,
  342.                             0,
  343.                             0x0000,  -1,
  344.                             NULL,
  345.                                1,  12,  12,
  346.                             MS_NONEL40,
  347.                                0,   0,
  348.                                0
  349.                         } ;
  350.  
  351. /* fileMItemId[7] */
  352.  
  353. static MMIPACKET d018 = {    &fileMItemId[7],
  354.                             &fileMenuId,
  355.                             &MJ_MITEML40,
  356.                             OFFSET(MITEML40),
  357.                             MS_NONE
  358.                         } ;
  359. static MITEML40    d018d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_LEFTL40,
  360.                              115, 204, 280, 223, 8,15, 8,
  361.                             MS_NONEL40,
  362.                             selectFunc